/**
 * 主页js
 */



if(location.href=="http://gat.jl.gov.cn/" || location.href=="http://gat.jl.gov.cn/index.html"){
//首页

	document.getElementsByTagName("select")[0].title=("中央政府网站");
	document.getElementsByTagName("select")[1].title=("地方政府网站");
	document.getElementsByTagName("select")[2].title=("省政府直属机构");
	document.getElementsByTagName("select")[3].title=("公安网站");
	
	
//关闭广告悬浮窗
//float_a = function(){}; float = function(){};


//源代码把j取值写错了，更正一下
//function card_j(num){
//	var i=num;
//	document.getElementById("cj"+i).style.display="";
//	document.getElementById("tj"+i).className="card_bg1chang";
//		for(var j=1;j<3;j++)
//		{
//				if(j!=i)
//				{
//				document.getElementById("cj"+j).style.display="none";
//				document.getElementById("tj"+j).className="card_bg2chang";
//				}
//			}
//}


 
 


// 将iframe所包含的a链接数 第一个a元素 最后一个a元素赋值给第一个参数的js对象
_EsdDynamicTransformationScript.getIframeInfos = function(jsObj,iframeObj){
	jsObj.aLink_num = iframeObj.contentWindow.document.getElementsByTagName("a").length;
	jsObj.first_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[0];
	jsObj.last_aLink = iframeObj.contentWindow.document.getElementsByTagName("a")[jsObj.aLink_num-1];
	jsObj.self = iframeObj;
};

// 声明iframe操作对象
_EsdDynamicTransformationScript.iframe1 = {};
_EsdDynamicTransformationScript.iframe2 = {};

//通过方法赋值   
_EsdDynamicTransformationScript.iframeElement1 = document.getElementsByTagName("iframe")[1];   // 需要修改 这里的iframe获取
_EsdDynamicTransformationScript.iframeElement2 = document.getElementsByTagName("iframe")[2];   // 需要修改 这里的iframe获取


//选项卡标签 jquery对象
_EsdDynamicTransformationScript.iframeTab1 = $("#tab2_t1 a");  // 需要修改 这里的tab获取
_EsdDynamicTransformationScript.iframeTab2 = $("#tab2_t2 a");  // 需要修改 这里的tab获取


// 判断iframe是否有效
if((_EsdDynamicTransformationScript.iframeElement1!=undefined) && (_EsdDynamicTransformationScript.iframeElement2!=undefined)){

	// 当iframe都加载完毕后执行代码 使用setInterval
	_EsdDynamicTransformationScript.iframeInterval = setInterval(function(){	
		
		if((_EsdDynamicTransformationScript.iframeElement1.contentWindow.document.getElementsByTagName("a")[0]!=undefined) 
				&& (_EsdDynamicTransformationScript.iframeElement2.contentWindow.document.getElementsByTagName("a")[0]!=undefined) ){
			clearInterval(_EsdDynamicTransformationScript.iframeInterval);
			
			//通过方法赋值   
			_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe1,_EsdDynamicTransformationScript.iframeElement1);  
			_EsdDynamicTransformationScript.getIframeInfos(_EsdDynamicTransformationScript.iframe2,_EsdDynamicTransformationScript.iframeElement2); 

		//第一个标签 切换
		_EsdDynamicTransformationScript.iframeTab1.focus(function (e) {
			console.log("tab1获取到焦点");
			e = $(this).mouseover();
			$(this).bind("keydown.iframeKeydown_1", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					console.log("tab1向回切换");
//					_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
				} else if (e.keyCode == 9) {
					console.log("tab1继续切换到iframe上");
					_EsdDynamicTransformationScript.iframeTab1.trigger("blur");
					$(_EsdDynamicTransformationScript.iframe1.self).focus();
					console.log(document.activeElement);
					return false;
				}
			});
		});
		_EsdDynamicTransformationScript.iframeTab1.blur(function () {
			$(this).unbind("keydown.iframeKeydown_1");
		});

		// 第一个标签的第一个链接
		$(_EsdDynamicTransformationScript.iframe1.first_aLink).focus(function () {
			console.log("第一个iframe的第一条获得焦点");
			$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					console.log("第一个iframe的第一条向上切换");
					$(this).trigger("blur");
					_EsdDynamicTransformationScript.iframeTab1.focus();
					return false;
				} else if (e.keyCode == 9) {
					console.log("第一个iframe的第一条继续切换");
				}
			});
		});
		$(_EsdDynamicTransformationScript.iframe1.first_aLink).blur(function () {
			$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
		});

		// 第一个标签的最后一个链接
		$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus(function () {
			console.log("第一个iframe的最后一条获得焦点");
			$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).bind("keydown.iframeKeydown_first1", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					console.log("第一个iframe的最后一条向上切换");
				} else if (e.keyCode == 9) {
					console.log("第一个iframe的最后一条继续切换 到下一个标签");
					 $(this).trigger("blur");
					_EsdDynamicTransformationScript.iframeTab2.focus();
					return false;
				}
			});
		});
		$(_EsdDynamicTransformationScript.iframe1.last_aLink).blur(function () {
			$(_EsdDynamicTransformationScript.iframe1.self.contentWindow.document).unbind("keydown.iframeKeydown_first1");
		});


		//第二个标签切换
		_EsdDynamicTransformationScript.iframeTab2.focus(function (e) {
			console.log("tab2获取到焦点");
			e = $(this).mouseover();
			$(this).bind("keydown.iframeKeydown_2", function (e) {
				if (e.shiftKey && e.keyCode == 9) {
					console.log("第二个标签向回切换 到第一个标签的最后一条");
					_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
					_EsdDynamicTransformationScript.iframeTab1.mouseover();
					$(_EsdDynamicTransformationScript.iframe1.last_aLink).focus();
					return false;
				} else if (e.keyCode == 9) {
					_EsdDynamicTransformationScript.iframeTab2.trigger("blur");
					$(_EsdDynamicTransformationScript.iframe2.self).focus();
					console.log(document.activeElement);
					return false;
				}
			});

		});
		_EsdDynamicTransformationScript.iframeTab2.blur(function () {
			$(this).unbind("keydown.iframeKeydown_2");
		});

		}
		
	}, 500);

}

	


//第一部分
	//二层  

	//各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num1 = $("#ca1 a").length-1;
	 _EsdDynamicTransformationScript.num2 = $("#ca2 a").length-1;
	
	//各个选项名称
	 _EsdDynamicTransformationScript.esd1TagNum1 = $("#ta1 a");
	 _EsdDynamicTransformationScript.esd1TagNum2 = $("#ta2 a");
	
	//各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd1TagNum1Content1 = $("#ca1 a:eq(0)");
	 _EsdDynamicTransformationScript.esd1TagNum2Content1 = $("#ca2 a:eq(0)");
	
	//各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd1TagNum1ContentN = $("#ca1 a:eq("+_EsdDynamicTransformationScript.num1+")");
	 _EsdDynamicTransformationScript.esd1TagNum2ContentN = $("#ca2 a:eq("+_EsdDynamicTransformationScript.num2+")");
	
	//第一块
	_EsdDynamicTransformationScript.esd1TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum1.blur(function () {
		
		$(this).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd1TagNum1Content1.focus(function () {
		$(this).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum1Content1.blur(function () {
		$(this).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus(function () {
		$(this).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd1TagNum1ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e1");
	});
	
	//第二块
	_EsdDynamicTransformationScript.esd1TagNum2.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd1TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd1TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd1TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd1TagNum2.blur(function () {
		$(this).unbind("keydown.keydown_2");
	});
	
//第二部分
	//二层  

	//各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num3 = $("#cb1 a").length-1;
	 _EsdDynamicTransformationScript.num4 = $("#cb2 a").length-1;
	
	//各个选项名称
	 _EsdDynamicTransformationScript.esd2TagNum1 = $("#tb1 a");
	 _EsdDynamicTransformationScript.esd2TagNum2 = $("#tb2 a");
	
	//各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd2TagNum1Content1 = $("#cb1 a:eq(0)");
	 _EsdDynamicTransformationScript.esd2TagNum2Content1 = $("#cb2 a:eq(0)");
	
	//各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd2TagNum1ContentN = $("#cb1 a:eq("+_EsdDynamicTransformationScript.num3+")");
	 _EsdDynamicTransformationScript.esd2TagNum2ContentN = $("#cb2 a:eq("+_EsdDynamicTransformationScript.num4+")");
	
	//第一块
	_EsdDynamicTransformationScript.esd2TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd2TagNum1.blur(function () {
		
		$(this).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd2TagNum1Content1.focus(function () {
		$(this).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd2TagNum1Content1.blur(function () {
		$(this).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus(function () {
		$(this).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd2TagNum1ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e1");
	});
	
	//第二块
	_EsdDynamicTransformationScript.esd2TagNum2.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd2TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd2TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd2TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd2TagNum2.blur(function () {
		$(this).unbind("keydown.keydown_2");
	});
	
//第三部分

	//各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num5 = $("#cc1 a").length-1;
	 _EsdDynamicTransformationScript.num6 = $("#cc2 a").length-1;
	 _EsdDynamicTransformationScript.num7 = $("#cc3 a").length-1;
	
	//各个选项名称
	 _EsdDynamicTransformationScript.esd3TagNum1 = $("#tc1 a");
	 _EsdDynamicTransformationScript.esd3TagNum2 = $("#tc2 a");
	 _EsdDynamicTransformationScript.esd3TagNum3 = $("#tc3 a");
	
	//各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd3TagNum1Content1 = $("#cc1 a:eq(0)");
	 _EsdDynamicTransformationScript.esd3TagNum2Content1 = $("#cc2 a:eq(0)");
	 _EsdDynamicTransformationScript.esd3TagNum3Content1 = $("#cc3 a:eq(0)");
	
	//各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd3TagNum1ContentN = $("#cc1 a:eq("+_EsdDynamicTransformationScript.num5+")");
	 _EsdDynamicTransformationScript.esd3TagNum2ContentN = $("#cc2 a:eq("+_EsdDynamicTransformationScript.num6+")");
	 _EsdDynamicTransformationScript.esd3TagNum3ContentN = $("#cc3 a:eq("+_EsdDynamicTransformationScript.num7+")");
	
	//第一块
	_EsdDynamicTransformationScript.esd3TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd3TagNum1.blur(function () {
		$(this).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd3TagNum1Content1.focus(function () {
		$(this).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum1Content1.blur(function () {
		$(this).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus(function () {
		$(this).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum1ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e1");
	});
	//第二块
	_EsdDynamicTransformationScript.esd3TagNum2.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd3TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd3TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd3TagNum2.blur(function () {
		$(this).unbind("keydown.keydown_2");
	});

	_EsdDynamicTransformationScript.esd3TagNum2Content1.focus(function () {
		$(this).bind("keydown.keydown_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum2.focus();
				return false;
			}
		});
	});

	_EsdDynamicTransformationScript.esd3TagNum2Content1.blur(function () {
		$(this).unbind("keydown.keydown_s2");
	});

	_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus(function () {
		$(this).bind("keydown.keydown_e2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd3TagNum2ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e2");
	});
	
	//第三块
	_EsdDynamicTransformationScript.esd3TagNum3.focus(function (e) {
		console.log(1);
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd3TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd3TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd3TagNum3Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd3TagNum3.blur(function () {
		$(this).unbind("keydown.keydown_3");
	});
	
//第四部分

	//各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num8 = $("#ce1 a").length-1;
	 _EsdDynamicTransformationScript.num9 = $("#ce2 a").length-1;
	 _EsdDynamicTransformationScript.num10= $("#ce3 a").length-1;
	
	//各个选项名称
	 _EsdDynamicTransformationScript.esd4TagNum1 = $("#te1 a");
	 _EsdDynamicTransformationScript.esd4TagNum2 = $("#te2 a");
	 _EsdDynamicTransformationScript.esd4TagNum3 = $("#te3 a");
	
	//各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd4TagNum1Content1 = $("#ce1 a:eq(0)");
	 _EsdDynamicTransformationScript.esd4TagNum2Content1 = $("#ce2 a:eq(0)");
	 _EsdDynamicTransformationScript.esd4TagNum3Content1 = $("#ce3 a:eq(0)");
	
	//各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd4TagNum1ContentN = $("#ce1 a:eq("+_EsdDynamicTransformationScript.num8+")");
	 _EsdDynamicTransformationScript.esd4TagNum2ContentN = $("#ce2 a:eq("+_EsdDynamicTransformationScript.num9+")");
	 _EsdDynamicTransformationScript.esd4TagNum3ContentN = $("#ce3 a:eq("+_EsdDynamicTransformationScript.num10+")");
	
	//第一块
	_EsdDynamicTransformationScript.esd4TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd4TagNum1.blur(function () {
		$(this).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd4TagNum1Content1.focus(function () {
		$(this).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd4TagNum1Content1.blur(function () {
		$(this).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus(function () {
		$(this).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd4TagNum1ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e1");
	});
	//第二块
	_EsdDynamicTransformationScript.esd4TagNum2.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd4TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd4TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum2Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd4TagNum2.blur(function () {
		$(this).unbind("keydown.keydown_2");
	});

	_EsdDynamicTransformationScript.esd4TagNum2Content1.focus(function () {
		$(this).bind("keydown.keydown_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd4TagNum2Content1.blur(function () {
		$(this).unbind("keydown.keydown_s2");
	});

	_EsdDynamicTransformationScript.esd4TagNum2ContentN.focus(function () {
		$(this).bind("keydown.keydown_e2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd4TagNum2ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e2");
	});
	
	//第三块
	_EsdDynamicTransformationScript.esd4TagNum3.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd4TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd4TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd4TagNum3Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd4TagNum3.blur(function () {
		$(this).unbind("keydown.keydown_3");
	});
	
//第五部分
	
	//各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num11 = $("#cd1 a").length-1;
	 _EsdDynamicTransformationScript.num12 = $("#cd2 a").length-1;
	 _EsdDynamicTransformationScript.num13 = $("#cd3 a").length-1;
	 _EsdDynamicTransformationScript.num14 = $("#cd4 a").length-1;
	
	//各个选项名称
	 _EsdDynamicTransformationScript.esd5TagNum1 = $("#td1 a");
	 _EsdDynamicTransformationScript.esd5TagNum2 = $("#td2 a");
	 _EsdDynamicTransformationScript.esd5TagNum3 = $("#td3 a");
	 _EsdDynamicTransformationScript.esd5TagNum4 = $("#td4 a");
	
	//各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd5TagNum1Content1 = $("#cd1 a:eq(0)");
	 _EsdDynamicTransformationScript.esd5TagNum2Content1 = $("#cd2 a:eq(0)");
	 _EsdDynamicTransformationScript.esd5TagNum3Content1 = $("#cd3 a:eq(0)");
	 _EsdDynamicTransformationScript.esd5TagNum4Content1 = $("#cd4 a:eq(0)");
	
	//各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd5TagNum1ContentN = $("#cd1 a:eq("+_EsdDynamicTransformationScript.num11+")");
	 _EsdDynamicTransformationScript.esd5TagNum2ContentN = $("#cd2 a:eq("+_EsdDynamicTransformationScript.num12+")");
	 _EsdDynamicTransformationScript.esd5TagNum3ContentN = $("#cd3 a:eq("+_EsdDynamicTransformationScript.num13+")");
	 _EsdDynamicTransformationScript.esd5TagNum4ContentN = $("#cd4 a:eq("+_EsdDynamicTransformationScript.num14+")");
	
	//第一块
	_EsdDynamicTransformationScript.esd5TagNum1.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum1Content1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd5TagNum1.blur(function () {
		$(this).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd5TagNum1Content1.focus(function () {
		$(this).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd5TagNum1Content1.blur(function () {
		$(this).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd5TagNum1ContentN.focus(function () {
		$(this).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd5TagNum1ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e1");
	});
	//第二块
	_EsdDynamicTransformationScript.esd5TagNum2.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd5TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd5TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum2Content1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd5TagNum2.blur(function () {
		$(this).unbind("keydown.keydown_2");
	});

	_EsdDynamicTransformationScript.esd5TagNum2Content1.focus(function () {
		$(this).bind("keydown.keydown_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd5TagNum2Content1.blur(function () {
		$(this).unbind("keydown.keydown_s2");
	});

	_EsdDynamicTransformationScript.esd5TagNum2ContentN.focus(function () {
		$(this).bind("keydown.keydown_e2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd5TagNum2ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e2");
	});
	
	//第三块
	_EsdDynamicTransformationScript.esd5TagNum3.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd5TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd5TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum3Content1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd5TagNum3.blur(function () {
		$(this).unbind("keydown.keydown_3");
	});

	_EsdDynamicTransformationScript.esd5TagNum3Content1.focus(function () {
		$(this).bind("keydown.keydown_s3", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd5TagNum3Content1.blur(function () {
		$(this).unbind("keydown.keydown_s3");
	});

	_EsdDynamicTransformationScript.esd5TagNum3ContentN.focus(function () {
		$(this).bind("keydown.keydown_e3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum4.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd5TagNum3ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e3");
	});
	
	
	//第四块
	_EsdDynamicTransformationScript.esd5TagNum4.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd5TagNum3.mouseover();
				_EsdDynamicTransformationScript.esd5TagNum3ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd5TagNum4Content1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd5TagNum4.blur(function () {
		$(this).unbind("keydown.keydown_4");
	});
	
//第六部分
	
	//各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num15 = $("#cf1 a").length-1;
	 _EsdDynamicTransformationScript.num16 = $("#cf2 a").length-1;
	 _EsdDynamicTransformationScript.num17 = $("#cf3 a").length-1;
	 _EsdDynamicTransformationScript.num18 = $("#cf4 a").length-1;
	
	//各个选项名称
	 _EsdDynamicTransformationScript.esd6TagNum1 = $("#tf1 a");
	 _EsdDynamicTransformationScript.esd6TagNum2 = $("#tf2 a");
	 _EsdDynamicTransformationScript.esd6TagNum3 = $("#tf3 a");
	 _EsdDynamicTransformationScript.esd6TagNum4 = $("#tf4 a");
	
	//各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd6TagNum1Content1 = $("#cf1 a:eq(0)");
	 _EsdDynamicTransformationScript.esd6TagNum2Content1 = $("#cf2 a:eq(0)");
	 _EsdDynamicTransformationScript.esd6TagNum3Content1 = $("#cf3 a:eq(0)");
	 _EsdDynamicTransformationScript.esd6TagNum4Content1 = $("#cf4 a:eq(0)");
	
	//各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd6TagNum1ContentN = $("#cf1 a:eq("+_EsdDynamicTransformationScript.num15+")");
	 _EsdDynamicTransformationScript.esd6TagNum2ContentN = $("#cf2 a:eq("+_EsdDynamicTransformationScript.num16+")");
	 _EsdDynamicTransformationScript.esd6TagNum3ContentN = $("#cf3 a:eq("+_EsdDynamicTransformationScript.num17+")");
	 _EsdDynamicTransformationScript.esd6TagNum4ContentN = $("#cf4 a:eq("+_EsdDynamicTransformationScript.num18+")");
	
	//第一块
	_EsdDynamicTransformationScript.esd6TagNum1.focus(function (e) {
		console.log("1");
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum1.blur(function () {
		$(this).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd6TagNum1Content1.focus(function () {
		$(this).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum1Content1.blur(function () {
		$(this).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd6TagNum1ContentN.focus(function () {
		$(this).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum1ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e1");
	});
	//第二块
	_EsdDynamicTransformationScript.esd6TagNum2.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd6TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd6TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum2Content1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum2.blur(function () {
		$(this).unbind("keydown.keydown_2");
	});

	_EsdDynamicTransformationScript.esd6TagNum2Content1.focus(function () {
		$(this).bind("keydown.keydown_s2", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum2Content1.blur(function () {
		$(this).unbind("keydown.keydown_s2");
	});

	_EsdDynamicTransformationScript.esd6TagNum2ContentN.focus(function () {
		$(this).bind("keydown.keydown_e2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum2ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e2");
	});
	
	//第三块
	_EsdDynamicTransformationScript.esd6TagNum3.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd6TagNum2.mouseover();
				_EsdDynamicTransformationScript.esd6TagNum2ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum3Content1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum3.blur(function () {
		$(this).unbind("keydown.keydown_3");
	});

	_EsdDynamicTransformationScript.esd6TagNum3Content1.focus(function () {
		$(this).bind("keydown.keydown_s3", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum3.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum3Content1.blur(function () {
		$(this).unbind("keydown.keydown_s3");
	});

	_EsdDynamicTransformationScript.esd6TagNum3ContentN.focus(function () {
		$(this).bind("keydown.keydown_e3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum4.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum3ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e3");
	});
	
	//第四块
	_EsdDynamicTransformationScript.esd6TagNum4.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd6TagNum3.mouseover();
				_EsdDynamicTransformationScript.esd6TagNum3ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd6TagNum4Content1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd6TagNum4.blur(function () {
		$(this).unbind("keydown.keydown_4");
	});
	
//第七部分
	//二层  

	//各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num19 = $("#cj1 a").length-1;
	 _EsdDynamicTransformationScript.num20 = $("#cj2 a").length-1;
	
	//各个选项名称
	 _EsdDynamicTransformationScript.esd7TagNum1 = $("#tj1 a:eq(0)");
	 _EsdDynamicTransformationScript.esd7TagNum2 = $("#tj2 a:eq(0)");
	
	//各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd7TagNum1Content1 = $("#cj1 a:eq(0)");
	 _EsdDynamicTransformationScript.esd7TagNum2Content1 = $("#cj2 a:eq(0)");
	
	//各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd7TagNum1ContentN = $("#cj1 a:eq("+_EsdDynamicTransformationScript.num19+")");
	 _EsdDynamicTransformationScript.esd7TagNum2ContentN = $("#cj2 a:eq("+_EsdDynamicTransformationScript.num20+")");
	
	//第一块
	_EsdDynamicTransformationScript.esd7TagNum1.focus(function (e) {
		
		try {
			card_j(1);
		} catch(e){
			
		}
		
		$(this).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum1Content1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd7TagNum1.blur(function () {
		$(this).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd7TagNum1Content1.focus(function () {
		$(this).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd7TagNum1Content1.blur(function () {
		$(this).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd7TagNum1ContentN.focus(function () {
		$(this).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd7TagNum1ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e1");
	});
	
	//第二块
	_EsdDynamicTransformationScript.esd7TagNum2.focus(function (e) {
		try {
			card_j(2);
		} catch(e){
			
		}
		$(this).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				try {
					card_j(1);
				} catch(e){
					
				}
				_EsdDynamicTransformationScript.esd7TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd7TagNum2Content1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd7TagNum2.blur(function () {
		$(this).unbind("keydown.keydown_2");
	});
	
//第八部分
	//二层  

	//各个选项名称对应的内容数量
	 _EsdDynamicTransformationScript.num21 = $("#ck1 a").length-1;
	 _EsdDynamicTransformationScript.num22 = $("#ck2 a").length-1;
	
	//各个选项名称
	 _EsdDynamicTransformationScript.esd8TagNum1 = $("#tk1 a");
	 _EsdDynamicTransformationScript.esd8TagNum2 = $("#tk2 a");
	
	//各个选项中的第一个内容
	 _EsdDynamicTransformationScript.esd8TagNum1Content1 = $("#ck1 a:eq(0)");
	 _EsdDynamicTransformationScript.esd8TagNum2Content1 = $("#ck2 a:eq(0)");
	
	//各个选项中的最后一个内容
	 _EsdDynamicTransformationScript.esd8TagNum1ContentN = $("#ck1 a:eq("+_EsdDynamicTransformationScript.num21+")");
	 _EsdDynamicTransformationScript.esd8TagNum2ContentN = $("#ck2 a:eq("+_EsdDynamicTransformationScript.num22+")");
	
	//第一块
	_EsdDynamicTransformationScript.esd8TagNum1.focus(function (e) {
		
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd8TagNum1Content1.focus();
				console.log(document.activeElement);
				return false;
			}
		});

	});
	_EsdDynamicTransformationScript.esd8TagNum1.blur(function () {
		
		$(this).unbind("keydown.keydown_1");
	});

	_EsdDynamicTransformationScript.esd8TagNum1Content1.focus(function () {
		$(this).bind("keydown.keydown_s1", function (e) {
			if (e.shiftKey && e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd8TagNum1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd8TagNum1Content1.blur(function () {
		$(this).unbind("keydown.keydown_s1");
	});

	_EsdDynamicTransformationScript.esd8TagNum1ContentN.focus(function () {
		$(this).bind("keydown.keydown_e1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd8TagNum2.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd8TagNum1ContentN.blur(function () {
		$(this).unbind("keydown.keydown_e1");
	});
	
	//第二块
	_EsdDynamicTransformationScript.esd8TagNum2.focus(function (e) {
		e = $(this).mouseover();
		$(this).bind("keydown.keydown_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esd8TagNum1.mouseover();
				_EsdDynamicTransformationScript.esd8TagNum1ContentN.focus();
				return false;
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esd8TagNum2Content1.focus();
				return false;
			}
		});
	});
	_EsdDynamicTransformationScript.esd8TagNum2.blur(function () {
		$(this).unbind("keydown.keydown_2");
	});
	



//首页结束	
}


